package com.xing.feign;

import com.xing.Utils.Result;
import com.xing.dto.SysNotificationDTO;
import com.xing.feign.FallbackFactory.NotificationFeignFallbackFactory;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author <a href="https://gitee.com/a-tom-is-cry">Xing</a>
 * @Date 2025/3/24 22:49
 * @Description
 */
@FeignClient(value = "conference-admin-server", contextId = "NotificationFeign", fallbackFactory = NotificationFeignFallbackFactory.class)
public interface NotificationFeign {

    @PostMapping("/sys/notification/sendNotification")
    public Result sendNotification(@RequestBody SysNotificationDTO dto);
}
